<%@page import="member.MemberVo"%>
<%@page import="member.MemberMyba"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>View(회원상세정보)</title>
<script>
function modify(memberid){
	frm.submit();
}
function del(memberid){
	location.href="delete.jsp?memberid=" + memberid;
}
function mlist(memberid){
	location.href="list.jsp";
}
</script>
</head>
<body>
<%request.setCharacterEncoding("utf-8"); %>
<jsp:useBean id="memberVo" class="member.MemberVo"/>
<jsp:setProperty property="*" name="memberVo"/>

<%
MemberMyba member = new MemberMyba();
member.setMemberVo(memberVo);
MemberVo data = member.view();
%>
<%
if(data == null){
	out.print("");
}else{
%>
<form name="frm" method="post" action="modify.jsp">
	<li>Memberid : <input type="text" name="memberid" value="<%=data.getMemberid() %>" readonly>
	<li>Name :<input type="text" name="irum" value="<%=data.getIrum() %>">
	<li>Address :<input type="text" name="address" value="<%=data.getAddress()%>">
</form>
<%} %>

<input type="button" value="목록" onclick="mlist('<%=data.getMemberid()%>')">
<input type="button" value="수정" onclick="modify('<%=data.getMemberid()%>')">
<input type="button" value="삭제" onclick="del('<%=data.getMemberid()%>')">



</body>
</html>